//
//  OrderPopController.m
//  YIChuSeller
//
//  Created by xsj on 2018/11/22.
//  Copyright © 2018年 xiangshengjun. All rights reserved.
//

#import "GXOrderPopController.h"

@interface GXOrderPopController ()
@property (weak, nonatomic) IBOutlet UIView *popContainerView;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *imageViewTopConstraint;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *viewTopConstraint;

@end

@implementation GXOrderPopController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.imageViewTopConstraint.constant = Height_StatusBar + 40;
    self.viewTopConstraint.constant = Height_StatusBar + 55;
    self.view.backgroundColor = [UIColor colorWithRed:0 green:0 blue:0 alpha:0.5];
    self.view.frame = CGRectMake(0,0,kUIScreenWidth,kUIScreenHeight);

}
- (IBAction)enterBtn:(UIButton *)sender {
    [self.view removeFromSuperview];
    if (self.popButtonBlock) {
        self.popButtonBlock(sender);
    }
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    [self.view removeFromSuperview];
}

@end
